<div class='span12'>
    <!-- HEADER -->
    <div class='row-fluid'>
        <div class='span12'>
            <div class='page-header'>

                <h1 class="span8">
                    <i class='icon-bullhorn'></i>
                    <span>MEMBERSHIP MANAGEMENT</span>
                </h1>
                
            </div>
        </div>
    </div>

    <!-- END OF HEADER -->


    <div class='row-fluid'>
        <div class="span12 box bordered-box blue-border" style="margin-bottom:0;">
            <div class="box-header blue-background">
                <div class="title">Edit Plan : <?= $membership->name;?></div>
                <div class="actions">
                 <span class="btn btn-danger">Don't Delete Free Listing Membership!</span>
                    <a href="#" class="btn box-remove btn-mini btn-link"><i class="icon-remove"></i>
                    </a>
                    <a href="#" class="btn box-collapse btn-mini btn-link"><i></i>
                    </a>
                </div>
            </div>
            <div class="box-content box-no-padding">
                
                <?php if(Session::get('message')){?>
                <?php 
                echo Session::get('message');
                ?>
                <?php }?>
                 <form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current();?>" class="form form-horizontal" method="post">
            		<table class="table table-inbox table-hover">
								<tbody>
									
									<tr>
										<td>Plan Title</td>
										<td colspan=2>
										<input type="text" name="plan_title" class="input-xxlarge" placeholder="PLan Title" value="<?= $membership->name;?>">
										<div class="text text-error">
								<?php echo $errors->first('plan_title') ?>
								</div>
										</td>
									</tr>
									<tr>
										<td colspan=3>Description<br>
										<textarea class="span12 input-xxlarge" rows="4" name="plan_description"><?= $membership->description;?></textarea>
										<div class="text text-error">
								<?php echo $errors->first('plan_description') ?>
						</div>
										</td>
									</tr>
									
									<tr>
										<td>Show Phone Number</td>
										<td> Yes &nbsp; <input name="contact_no" id="contact_no"
											type="radio" value="1" 
											<?php if($membership->contact_no == '1') echo "Checked='checked'";?> />
										</td>
										<td>No &nbsp; <input name="contact_no" id="contact_no" type="radio" value="0"
										 <?php if($membership->contact_no == '0') echo "Checked='checked'";?> />
										</td>
										
									</tr>

									<tr>
										<td>Show Business Email</td>
										<td> Yes &nbsp; <input name="email" id="email"
											type="radio" value="1"
											<?php if($membership->email == '1') echo "Checked='checked'";?> />
										</td>
										<td>No &nbsp; <input name="email" id="email" type="radio" value="0"
										<?php if($membership->email == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									
									<tr>
										<td>Show Website</td>
										<td> Yes &nbsp; <input name="website" id="website"
											type="radio" value="1"
											<?php if($membership->website == '1') echo "Checked='checked'";?>/>
										</td>
										<td>No &nbsp; <input name="website" id="website" type="radio" value="0"
										<?php if($membership->website == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									
									<tr>
										<td>Show Contact Person Name and Contact Detail</td>
										<td> Yes &nbsp; <input name="contact_person" id="contact_person"
											type="radio" value="1"
										<?php if($membership->contact_person == '1') echo "Checked='checked'";?>/>
										</td>
										<td>No &nbsp; <input name="contact_person" id="contact_person" type="radio" value="0"
										<?php if($membership->contact_person == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									
									<tr>
										<td>Upload Video</td>
										<td> Yes &nbsp; <input name="video" id="video"
											type="radio" value="1"
										<?php if($membership->video == '1') echo "Checked='checked'";?>/>
										</td>
										<td>No &nbsp; <input name="video" id="video" type="radio" value="0"
										<?php if($membership->video == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									
									<tr>
										<td>Upload Photo</td>
										<td> Yes &nbsp; <input name="photo" id="photo"
											type="radio" value="1"
										<?php if($membership->photo == '1') echo "Checked='checked'";?>/>
										</td>
										<td>No &nbsp; <input name="photo" id="photo" type="radio" value="0"
										<?php if($membership->photo == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									<tr>
										<td>Upload Products</td>
										<td> Yes &nbsp; <input name="products" id="products"
											type="radio" value="1"
										<?php if($membership->products == '1') echo "Checked='checked'";?>/>
										</td>
										<td>No &nbsp; <input name="products" id="products" type="radio" value="0"
										<?php if($membership->products == '0') echo "Checked='checked'";?>/>
										</td>
									</tr>
									
									
									<tr>
										<td>Keyword Limit</td>
										<td>
											<input class="form-control" name="keyword_limit" id="keyword_limit" type="text" placeholder="Keyword Limit" value="<?= $membership->keyword_limit;?>">
											<div class="text text-error">
								<?php echo $errors->first('keyword_limit') ?>
						</div>
										</td>
										<td>Only Numeric , no decimal</td>
									</tr>
									
									
									<tr>
										<td>Photo Limit</td>
										<td>
											<input class="form-control" name="photo_limit" id="photo_limit" type="text" placeholder="Photo Limit" value="<?= $membership->photo_limit;?>">
											
										</td>
										<td>Only Numeric , no decimal</td>
									</tr>
									<tr>
										<td>Products Limit</td>
										<td>
											<input class="form-control" name="products_limit" id="products_limit" type="text" placeholder="Products Limit" value="<?= $membership->products_limit;?>">
											
										</td>
										<td>Only Numeric , no decimal</td>
									</tr>
									<tr>
										<td>Price</td>
										<td>
											<input class="form-control" name="price" id="price" type="text" placeholder="Price" value="<?= $membership->price;?>">
										</td>
										<td> Only Numeric , no decimal</td>
									</tr>
									<tr>
										<td>Period</td>
										<td>
										<input class="form-control" name="period" id="period" type="text" placeholder="Days" value="<?= $membership->period;?>">
										<div class="text text-error">
								<?php echo $errors->first('period') ?>
						</div>
										</td>
										<td> Days</td>
									</tr>
									<tr>
										<td>
										
										</td>
										<td>
										</td>
										<td>
										<input type="hidden" name="memID" id="memID" value="<?= $membership->id;?>">
										
										<input type="submit" class="pull-left btn btn-success"
										value="Update" name="insert_settings" <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
										
										&nbsp;&nbsp;&nbsp;&nbsp;
										
										<a href="<?= URL::to('/admin/membership/delete/'.$membership->id)?>"  class="btn btn-danger"
										<?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>Delete</a>
										</td>
										
									</tr>

								</tbody>
							</table>


						</form>
            </div>
        </div>
    </div>


    <!-- END OF CONTENT -->
</div>



